package net.sxnic.ugr.resource.action;

import net.sxnic.ugr.resource.Resource;

@SuppressWarnings("serial")
public class Edit extends ResourceAction {

	public String execute() throws Exception {

		try {
			checkRoles(Resource.SYSTEM_ADMIN);
			resource = resourceManager.get(id);

		} catch (Exception e) {
			e.printStackTrace();
		}

		return SUCCESS;
	}

	public Resource getResource() {
		return resource;
	}

	public void setResource(Resource resource) {
		this.resource = resource;
	}

}
